<?php

class User_Form_Admin_Create extends Form
{
	protected function _init()
	{
		/**
		 * display name
		 */
		$this -> addElement('nuo@text', 'name', array('label' => 'full name'));

		/**
		 * email
		 */
		$this -> addElement('nuo@email', 'email', array('label' => 'email'));
		
		/**
		 * gender
		 */
		$genders = array(
				'male' => 'male',
				'female' => 'female'
		);
		$this -> addElement('nuo@select', 'gender', array(
				'label' => 'gender',
				'multiOptions' => $genders
		));

		/**
		 * role id
		 */
		$roles = array(
				1 => 'super',
				2 => 'admin',
				3 => 'moderator',
				4 => 'contributor',
				5 => 'member',
				6 => 'guest'
		);
		$this -> addElement('nuo@select', 'role_id', array(
				'label' => 'role',
				'multiOptions' => $roles
		));

		/**
		 * password
		 */
		$this -> addElement('nuo@password', 'password', array('label' => 'password'));

		/**
		 * groups
		 */
		$this -> addElement('nuo@group', '_buttons');

		/**
		 * buttons
		 */
		$buttons = $this -> getElement('_buttons');

		/**
		 * submit
		 */
		$buttons -> addElement('nuo@submit', '_submit', array());

		/**
		 * cancel
		 */
		$buttons -> addElement('nuo@cancel', '_cancel', array());
	}

}
